package com.bm.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;

/**
 * 
 * @TableName ejyy_owner_apply
 */
@TableName(value ="ejyy_owner_apply")
@Data
public class EjyyOwnerApply implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 
     */
    private Long wechatMpUserId;

    /**
     * 
     */
    private String communityName;

    /**
     * 
     */
    private String house;

    /**
     * 
     */
    private String carport;

    /**
     * 
     */
    private String warehouse;

    /**
     * 
     */
    private Long communityId;

    /**
     * 
     */
    private Boolean subscribed;

    /**
     * 
     */
    private Boolean replied;

    /**
     * 
     */
    private String content;

    /**
     * 
     */
    private Long repliedAt;

    /**
     * 
     */
    private Long repliedBy;

    /**
     * 
     */
    private Boolean success;

    /**
     * 
     */
    private String replyContent;

    /**
     * 
     */
    private Long createdAt;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        EjyyOwnerApply other = (EjyyOwnerApply) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getWechatMpUserId() == null ? other.getWechatMpUserId() == null : this.getWechatMpUserId().equals(other.getWechatMpUserId()))
            && (this.getCommunityName() == null ? other.getCommunityName() == null : this.getCommunityName().equals(other.getCommunityName()))
            && (this.getHouse() == null ? other.getHouse() == null : this.getHouse().equals(other.getHouse()))
            && (this.getCarport() == null ? other.getCarport() == null : this.getCarport().equals(other.getCarport()))
            && (this.getWarehouse() == null ? other.getWarehouse() == null : this.getWarehouse().equals(other.getWarehouse()))
            && (this.getCommunityId() == null ? other.getCommunityId() == null : this.getCommunityId().equals(other.getCommunityId()))
            && (this.getSubscribed() == null ? other.getSubscribed() == null : this.getSubscribed().equals(other.getSubscribed()))
            && (this.getReplied() == null ? other.getReplied() == null : this.getReplied().equals(other.getReplied()))
            && (this.getContent() == null ? other.getContent() == null : this.getContent().equals(other.getContent()))
            && (this.getRepliedAt() == null ? other.getRepliedAt() == null : this.getRepliedAt().equals(other.getRepliedAt()))
            && (this.getRepliedBy() == null ? other.getRepliedBy() == null : this.getRepliedBy().equals(other.getRepliedBy()))
            && (this.getSuccess() == null ? other.getSuccess() == null : this.getSuccess().equals(other.getSuccess()))
            && (this.getReplyContent() == null ? other.getReplyContent() == null : this.getReplyContent().equals(other.getReplyContent()))
            && (this.getCreatedAt() == null ? other.getCreatedAt() == null : this.getCreatedAt().equals(other.getCreatedAt()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getWechatMpUserId() == null) ? 0 : getWechatMpUserId().hashCode());
        result = prime * result + ((getCommunityName() == null) ? 0 : getCommunityName().hashCode());
        result = prime * result + ((getHouse() == null) ? 0 : getHouse().hashCode());
        result = prime * result + ((getCarport() == null) ? 0 : getCarport().hashCode());
        result = prime * result + ((getWarehouse() == null) ? 0 : getWarehouse().hashCode());
        result = prime * result + ((getCommunityId() == null) ? 0 : getCommunityId().hashCode());
        result = prime * result + ((getSubscribed() == null) ? 0 : getSubscribed().hashCode());
        result = prime * result + ((getReplied() == null) ? 0 : getReplied().hashCode());
        result = prime * result + ((getContent() == null) ? 0 : getContent().hashCode());
        result = prime * result + ((getRepliedAt() == null) ? 0 : getRepliedAt().hashCode());
        result = prime * result + ((getRepliedBy() == null) ? 0 : getRepliedBy().hashCode());
        result = prime * result + ((getSuccess() == null) ? 0 : getSuccess().hashCode());
        result = prime * result + ((getReplyContent() == null) ? 0 : getReplyContent().hashCode());
        result = prime * result + ((getCreatedAt() == null) ? 0 : getCreatedAt().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", wechatMpUserId=").append(wechatMpUserId);
        sb.append(", communityName=").append(communityName);
        sb.append(", house=").append(house);
        sb.append(", carport=").append(carport);
        sb.append(", warehouse=").append(warehouse);
        sb.append(", communityId=").append(communityId);
        sb.append(", subscribed=").append(subscribed);
        sb.append(", replied=").append(replied);
        sb.append(", content=").append(content);
        sb.append(", repliedAt=").append(repliedAt);
        sb.append(", repliedBy=").append(repliedBy);
        sb.append(", success=").append(success);
        sb.append(", replyContent=").append(replyContent);
        sb.append(", createdAt=").append(createdAt);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}